package top.soulblack.purchasesale.model;

import lombok.Data;

import java.math.BigDecimal;

/**
 * create by 小川
 */
@Data
public class Goods {

    private Integer id;

    private String name;

    private String goodsNumber;

    private String barCode;

    private String onlyBarCode;

    private String imgUrl;

    private BigDecimal purchasePrice;

    private BigDecimal wholesalePrice;

    private BigDecimal salePrice;

    private BigDecimal recommendPrice;

    private Integer color;

    private Integer size;

    private Integer gender;

    private Integer classify;

    private Integer brand;

    private Integer material;

    private Integer season;

    private Integer style;

    private Integer unit;

    private Integer backingPag;

    private Integer stockMin;

    private Integer stockMax;

    private String remark;

    private Integer sort;

    private Boolean status;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"id\":")
                .append(id);
        sb.append(",\"name\":\"")
                .append(name).append('\"');
        sb.append(",\"goodsNumber\":\"")
                .append(goodsNumber).append('\"');
        sb.append(",\"barCode\":\"")
                .append(barCode).append('\"');
        sb.append(",\"onlyBarCode\":\"")
                .append(onlyBarCode).append('\"');
        sb.append(",\"imgUrl\":\"")
                .append(imgUrl).append('\"');
        sb.append(",\"purchasePrice\":")
                .append(purchasePrice);
        sb.append(",\"wholesalePrice\":")
                .append(wholesalePrice);
        sb.append(",\"salePrice\":")
                .append(salePrice);
        sb.append(",\"recommendPrice\":")
                .append(recommendPrice);
        sb.append(",\"color\":")
                .append(color);
        sb.append(",\"size\":")
                .append(size);
        sb.append(",\"gender\":")
                .append(gender);
        sb.append(",\"classify\":")
                .append(classify);
        sb.append(",\"brand\":")
                .append(brand);
        sb.append(",\"material\":")
                .append(material);
        sb.append(",\"season\":")
                .append(season);
        sb.append(",\"style\":")
                .append(style);
        sb.append(",\"unit\":")
                .append(unit);
        sb.append(",\"backingPag\":")
                .append(backingPag);
        sb.append(",\"stockMin\":")
                .append(stockMin);
        sb.append(",\"stockMax\":")
                .append(stockMax);
        sb.append(",\"remark\":\"")
                .append(remark).append('\"');
        sb.append(",\"sort\":")
                .append(sort);
        sb.append(",\"status\":")
                .append(status);
        sb.append('}');
        return sb.toString();
    }
}
